package com.zxq.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.zxq.ruoyi.mapper.IotPacketFieldMapper;
import com.zxq.ruoyi.domain.IotPacketField;
import com.zxq.ruoyi.service.IIotPacketFieldService;

/**
 * 数据包-字段Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-14
 */
@Service
@Primary
public class IotPacketFieldServiceImpl implements IIotPacketFieldService 
{
    @Autowired
    private IotPacketFieldMapper iotPacketFieldMapper;

    /**
     * 查询数据包-字段
     * 
     * @param id 数据包-字段主键
     * @return 数据包-字段
     */
    @Override
    public IotPacketField selectIotPacketFieldById(Long id)
    {
        return iotPacketFieldMapper.selectIotPacketFieldById(id);
    }

    /**
     * 查询数据包-字段列表
     * 
     * @param iotPacketField 数据包-字段
     * @return 数据包-字段
     */
    @Override
    public List<IotPacketField> selectIotPacketFieldList(IotPacketField iotPacketField)
    {
        return iotPacketFieldMapper.selectIotPacketFieldList(iotPacketField);
    }

    /**
     * 新增数据包-字段
     * 
     * @param iotPacketField 数据包-字段
     * @return 结果
     */
    @Override
    public int insertIotPacketField(IotPacketField iotPacketField)
    {
        return iotPacketFieldMapper.insertIotPacketField(iotPacketField);
    }

    /**
     * 修改数据包-字段
     * 
     * @param iotPacketField 数据包-字段
     * @return 结果
     */
    @Override
    public int updateIotPacketField(IotPacketField iotPacketField)
    {
        return iotPacketFieldMapper.updateIotPacketField(iotPacketField);
    }

    /**
     * 批量删除数据包-字段
     * 
     * @param ids 需要删除的数据包-字段主键
     * @return 结果
     */
    @Override
    public int deleteIotPacketFieldByIds(Long[] ids)
    {
        return iotPacketFieldMapper.deleteIotPacketFieldByIds(ids);
    }

    /**
     * 删除数据包-字段信息
     * 
     * @param id 数据包-字段主键
     * @return 结果
     */
    @Override
    public int deleteIotPacketFieldById(Long id)
    {
        return iotPacketFieldMapper.deleteIotPacketFieldById(id);
    }
}
